IOperable

Ecng.Common

Provides operations for performing arithmetic calculations on objects of type T.

Реализует: IComparable<T>

Методы

Add
public T Add(T other)
result = iOperable.Add(other)

Adds the specified object to the current object.

other
The object to add.

Возвращает: The result of the addition operation.

Divide
public T Divide(T other)
result = iOperable.Divide(other)

Divides the current object by the specified object.

other
The object to divide by.

Возвращает: The result of the division operation.

Multiply
public T Multiply(T other)
result = iOperable.Multiply(other)

Multiplies the current object by the specified object.

other
The object to multiply with.

Возвращает: The result of the multiplication operation.

Subtract
public T Subtract(T other)
result = iOperable.Subtract(other)

Subtracts the specified object from the current object.

other
The object to subtract.

Возвращает: The result of the subtraction operation.